package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 点赞对象 bai_like
 * 
 * @author saruri
 * @date 2024-09-16
 */
public class BaiLike extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 文章id */
    @Excel(name = "文章id")
    private Long contentId;

    /** 文章类型 */
    @Excel(name = "文章类型")
    private String contentType;

    /** 文章地址 */
    @Excel(name = "文章地址")
    private String url;

    /** 点赞时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "点赞时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date likeTime;

    /** 点赞状态 */
    @Excel(name = "点赞状态")
    private Integer status;

    public String getCopyfrom() {
        return copyfrom;
    }

    public void setCopyfrom(String copyfrom) {
        this.copyfrom = copyfrom;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    /** 来源 */
    @Excel(name = "来源")
    private String copyfrom;

    /** 关键词 */
    @Excel(name = "关键词")
    private String keyword;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    private String title;
    private String cover;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    private String type;

    public Integer getFocus() {
        return focus;
    }

    public void setFocus(Integer focus) {
        this.focus = focus;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public Integer getSug() {
        return sug;
    }

    public void setSug(Integer sug) {
        this.sug = sug;
    }


    /** 焦点图 */
    @Excel(name = "焦点图")
    private Integer focus;

    /** 首页 */
    @Excel(name = "首页")
    private Integer index;

    /** 推荐 */
    @Excel(name = "推荐")
    private Integer sug;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setContentType(String contentType) 
    {
        this.contentType = contentType;
    }

    public String getContentType() 
    {
        return contentType;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setLikeTime(Date likeTime) 
    {
        this.likeTime = likeTime;
    }

    public Date getLikeTime() 
    {
        return likeTime;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("contentId", getContentId())
            .append("contentType", getContentType())
            .append("url", getUrl())
            .append("likeTime", getLikeTime())
            .append("status", getStatus())
            .toString();
    }
}
